import cookie from 'react-cookies';

const REACT_APP_AUTH_TOKEN_KEY = "react-token";
export const setCookieToken = (token: string): void => {
    cookie.save(REACT_APP_AUTH_TOKEN_KEY, token)
}

export const getCookieToken = (): string => {
    return cookie.load(REACT_APP_AUTH_TOKEN_KEY)
}

export const removeCookieToken = (): void => {
    cookie.remove(REACT_APP_AUTH_TOKEN_KEY)
}
